from rest_framework import serializers
from goods.models import Carousel, Goods, Category


# 轮播图
class CarouselSer(serializers.ModelSerializer):
    class Meta:
        model = Carousel
        fields = "__all__"


# 商品
class GoodsSer(serializers.ModelSerializer):
    class Meta:
        model = Goods
        fields = "__all__"


# 商品类别
class CateSer(serializers.ModelSerializer):
    class Meta:
        model = Category
        fields = "__all__"